<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>经视帮帮网 - 后台管理中心</title>
<link href="__Public__/Admin/css/reset.css" rel="stylesheet" type="text/css" />
<link href="__Public__/Admin/css/zh-cn-system.css" rel="stylesheet" type="text/css" />
<link href="__Public__/Admin/css/table_form.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="__Public__/Admin/js/jquery.min.js"></script>
<script language="javascript" type="text/javascript" src="__Public__/Admin/js/admin_common.js"></script>
</head>
<body>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='/index.php/Admin/Expand/Authoritys' ><em>权限管理</em></a><span>|</span><a href='javascript:;' class="on"><em>添加角色</em></a></div>
</div>
<style type="text/css">
	html{_overflow-y:scroll}
</style>
<script type="text/javascript">
function selectalls(name) {
	if ($("#check_box"+name).attr("checked")==false) {
		$("input#ccheck_box"+name).each(function() {
			this.checked=false;
		});
	} else {
		$("input#ccheck_box"+name).each(function() {
			this.checked=true;
		});
	}
}
function selectallss(id,fid) {
	if ($(".check_box"+id).attr("checked")==true)
		{
			$(".check_box"+fid).attr("checked", true);
		}
}
</script>
<div class="pad_10">
<div class="common-form">
<form name="myform" action="/index.php/Admin/Expand/Authorityssets/role_id/{$role_id}" method="post" id="myform">
<table width="100%" class="table_form contentWrap">
<tr>
<td>角色名称</td> 
<td><font color="red">{$name}</font> ; 状态(<if condition="$status eq '1' "> 启用<else/>禁止</if>)  ; 排序：({$sort})</td>
</tr>
<volist name="power" id='vpra'>
	<tr><td><font color="blue">{$vpra.name}</font></td> <td>
		<volist name="vpra['parent']" id='vprb'>
			<input type="checkbox" name="checkbox[]" value="{$vprb['id']}"  id="check_box{$vprb.id}" onclick="selectalls('{$vprb.id}');" class="check_box{$vprb.id}"   <if condition="$role_powers[$vprb['id']] eq 1">checked</if>/> {$vprb.name} ->
			<volist name="vprb['parent']" id='vprc'>
				- <input type="checkbox" name="checkbox[]" value="{$vprc['id']}" onclick="selectallss('{$vprc.id}','{$vprb.id}');" id="ccheck_box{$vprb.id}" class="check_box{$vprc.id}" <if condition="$role_powers[$vprc['id']] eq 1">checked</if>/> {$vprc.name}
			</volist>
			<br/>
		</volist>
		</td>
	</tr>
</volist>
</table>
    <div class="bk15"></div>
    <input name="dosubmit" type="submit" value="提交" class="button">
</form>
</div>
</div>
</body>
</html>


